<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>修改管理员信息</title>

    <link rel="shortcut icon" href="<%=application.getContextPath()%>/static/favicon.ico">
    <link href="<%=application.getContextPath()%>/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="<%=application.getContextPath()%>/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="<%=application.getContextPath()%>/static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="<%=application.getContextPath()%>/static/css/animate.min.css" rel="stylesheet">
    <link href="<%=application.getContextPath()%>/static/css/style.min.css?v=4.0.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改管理员信息 </h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="form_basic.html#">选项1</a>
                            </li>
                            <li><a href="form_basic.html#">选项2</a>
                            </li>
                        </ul>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form method="post" action="<%=application.getContextPath()%>/admin/adminUpdate?id=${adminUpdate.id}" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">姓名</label>

                            <div class="col-sm-10">
                                <input type="text" name="name" value="${adminUpdate.name}" class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">昵称</label>

                            <div class="col-sm-10">
                                <input type="text" name="fakename" value="${adminUpdate.fakename}" class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">性别</label>

                            <c:if test="${adminUpdate.sex eq '男'}">
                                <div class="col-sm-10">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" checked="" value="男" name="sex"> <i></i> 男 </label>
                                    </div>
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio"  value="女" name="sex"> <i></i> 女 </label>
                                    </div>
                                </div>
                            </c:if>
                            <c:if test="${adminUpdate.sex eq '女'}">
                                <div class="col-sm-10">
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" value="男" name="sex"> <i></i> 男 </label>
                                    </div>
                                    <div class="radio i-checks">
                                        <label>
                                            <input type="radio" checked=""  value="女" name="sex"> <i></i> 女 </label>
                                    </div>
                                </div>
                            </c:if>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">账户名</label>

                            <div class="col-sm-10">
                                <input type="text" name="username" value="${adminUpdate.username}" class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">密码</label>

                            <div class="col-sm-10">
                                <input type="password" class="form-control" value="${adminUpdate.password}" name="password">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">联系方式</label>

                            <div class="col-sm-10">
                                <input type="tel" name="telephone" value="${adminUpdate.telephone}" class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">邮箱</label>

                            <div class="col-sm-10">
                                <input type="email" name="email" value="${adminUpdate.email}" class="form-control">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-success" type="submit">修改</button>
                                <button class="btn btn-primary" onclick="javascript:window.history.go(-1);return false;">返回</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="<%=application.getContextPath()%>/static/js/jquery.min.js?v=2.1.4"></script>
<script src="<%=application.getContextPath()%>/static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="<%=application.getContextPath()%>/static/js/content.min.js?v=1.0.0"></script>
<script src="<%=application.getContextPath()%>/static/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>

</html>